<template>
	<view class="content">
		<view v-for="(item,index) in dataList" :key="index" class="report" @click="jumpR(item)">
			{{item.reportId}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[]
			}
		},
		onLoad() {
			this.getRank();
		},
		methods: {
			jumpR(item){
				console.log("sasaw")
				uni.setStorageSync("url",item.url);
				uni.navigateTo({
					url:'../gait-report?report='+item.content
				})
			},
			getRank(){
				var me=this;
				var usertoken = uni.getStorageSync("usertoken");
				var info = uni.getStorageSync("accountInfo");
				uni.request({
					url: me.serverUrl + "/gait/getReport",
					data: {
						"openid": info.openid
					},
					method: "POST",
					header: {
						"usertoken": usertoken
					},
					success(res) {
						console.log(res.data)
						if (res.data.status == 200) {
							me.dataList=res.data.data;
							console.log(me.dataList)
						}
					}
				})
			},
		}
	}
</script>

<style>
	@import url("gait-reportList.css");
</style>
